import request from '@/utils/request'

// 板木-核心指标
export function getSoftwareQuantity(date) {
  return request({
    url: '/app/v1/produces/wood/core/quantity',
    method: 'get',
    params: {
      date
    }
  })
}
// 板木-核心指标包件
export function getSoftwarePackageQuantity(date) {
  return request({
    url: '/app/v1/produces/wood/core/package-quantity',
    method: 'get',
    params: {
      date
    }
  })
}
// 板木-核心指标-弹框明细
export function getSoftwareQuantitySubclass(date) {
  return request({
    url: '/app/v1/produces/wood/core-drill/quantity',
    method: 'get',
    params: date
  })
}
// 板木-板木看板近6月趋势
export function getSixMonthTrend(date) {
  return request({
    url: '/app/v1/produces/wood/trend/6month',
    method: 'get',
    params: date
  })
}
// 板木-板木看板近30日趋势
export function getThirtyDayTrend(date) {
  return request({
    url: '/app/v1/produces/wood/trend/30days',
    method: 'get',
    params: date
  })
}
// 板木-板木看板分厂
export function getFactoryQuantity(date) {
  return request({
    url: '/app/v1/produces/wood/each-factory/quantity',
    method: 'get',
    params: date
  })
}

// 板木-板木看板工厂看小类
export function getFactorySubclassQuantity(date) {
  return request({
    url: '/app/v1/produces/wood/branch-factory/quantity',
    method: 'get',
    params: date
  })
}

// 板木-板木看板大类今年总产量
export function getThisYearBigTypeQuantity(date) {
  return request({
    url: '/app/v1/produces/year/completed-quantity',
    method: 'get',
    params: date
  })
}
